package com.ecut.property_project.service.contract;

import com.ecut.property_project.mapper.contract.ContractChargeMapper;
import com.ecut.property_project.model.contract.ContractCharge;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ContractChargeService{

    @Resource
    private ContractChargeMapper contractChargeMapper;

    
    public int deleteByPrimaryKey(Integer id) {
        return contractChargeMapper.deleteByPrimaryKey(id);
    }

    
    public int insert(ContractCharge record) {
        return contractChargeMapper.insert(record);
    }

    
    public int insertSelective(ContractCharge record) {
        return contractChargeMapper.insertSelective(record);
    }

    public List<ContractCharge> selectAll(){ return contractChargeMapper.selectAll(); }

    public List<ContractCharge> selectByPage(Integer page, Integer pageSize){return contractChargeMapper.selectByPage(page,pageSize);}

    public ContractCharge selectByPrimaryKey(Integer id) {
        return contractChargeMapper.selectByPrimaryKey(id);
    }
    public List<ContractCharge> selectByHeadId(String headId){
        return contractChargeMapper.selectByHeadId(headId);
    }

    
    public int updateByPrimaryKeySelective(ContractCharge record) {
        return contractChargeMapper.updateByPrimaryKeySelective(record);
    }

    
    public int updateByPrimaryKey(ContractCharge record) {
        return contractChargeMapper.updateByPrimaryKey(record);
    }

}
